package cn.yotta.user.api.feign;

import cn.yotta.user.api.feign.interceptor.FeignContextInterceptor;
import cn.yotta.user.api.feign.properties.UserAPiFeignProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author wyaoyao
 * @date 2023/3/11 21:43
 */
@EnableFeignClients({"cn.yotta.user.api.feign.impl"})
@EnableConfigurationProperties(UserAPiFeignProperties.class)
public class UserFeignApiAutoConfiguration {

    @Bean
    public FeignContextInterceptor feignContextInterceptor() {
        return new FeignContextInterceptor();
    }
}
